import {
	code2session,
} from '../../api/mp.js'

export default {
	state: {},
	mutations: {

	},
	getters: {

	},
	actions: {
		code2session( {}, payload ) {
			return new Promise( ( resolve, reject ) => {
				code2session( payload ).then( res => {
					resolve( res )
				} ).catch( err => {
					reject( err )
				} )
			} )
		},
	},
	namespaced: true
}
